import Mock from 'mockjs';

let item = [{
		key: "/room/all",
		method: "get",
		param: {
			
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA|1-4': [{
					"storeid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"sname": "@cword(6,9)",
					"sdz": "@csentence",
					"jd": "31.269689",
					"wd": "121.305338",
					"fm": "@image('200x200')",
					"sheng": "code",
					"shengmc": "黑龙江省",
					"shi": "code",
					"shimc": "哈尔滨市",
					"qu": "code",
					"qumc": "道里区",
				}]
			});
		}
	},
	{
		key: "/room/page",
		method: "get",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|12": [{
						"roomid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"rname": "@cword(6,9)屋",
						"cover":"https://bpic.588ku.com//back_origin_min_pic/24/01/17/4caf52960ca8be1a0deaedf2e55a8150.jpg",
						"mj":"@integer(20, 90)㎡",
						"rnrs":"@integer(20, 150)人",
						"yjds":"@integer(10, 60)个",
						"storeid":"111",
						"sname":"@cword(6,9)店",
					}]
				}
			});
		}
	},
	{
		key: "/room/info",
		method: "get",
		prarm: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					// "roomid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					// "rname": "@cword(6,9)",
					// "mj": "@natural(30, 90)",
					// "yjds": "@natural(50, 60)",
					// "rnrs": "@natural(10, 30)",
					// "cover": "https://bpic.588ku.com/back_origin_min_pic/24/01/16/787d0e6c558c698c02883e063f1f2e97.jpg!",
					// "amont": "@natural(300, 1600)",
					// "storeid": "111",
					// "sname": "万达店",
					// "jlname": "@cname",
					// "birth": "@date",
					// "tel": "@natural",
					// "imgs":[Mock.Random.image('200x100')],
					
					'current': 0,
					'size': 6,
					'pages': 6,
					'total': 55,

					
					"arooms":{
						"roomid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						"rname": "@cword(6,9)",
						"mj": "@natural(30, 90)",
						"yjds": "@natural(50, 60)",
						"rnrs": "@natural(10, 30)",
						"cover": "https://bpic.588ku.com/back_origin_min_pic/24/01/16/787d0e6c558c698c02883e063f1f2e97.jpg!",
						"amont": "@natural(300, 1600)",
						"storeid": "111",
						"sname": "万达店",
						// "jlname": "@cname",
						// "birth": "@date",
						// "tel": "@natural",
						"kcname": "@cword(3,5)",
						"imgs":["https://bpic.588ku.com/back_origin_min_pic/24/01/16/787d0e6c558c698c02883e063f1f2e97.jpg",
						"https://bpic.588ku.com//back_origin_min_pic/23/04/19/b76bb998b9898840837aa437fa6726de.jpg",
						"https://bpic.588ku.com/back_origin_min_pic/23/04/19/0a9f7a88a481b1754ff0501fafe96b9a.jpg"],
					},
					
					"amenjins":[
						{
							"mjid":"1",
							"flg|1":[true,false],
							"roomid":"",
							"modelnumber":"F014",
							"uid":"1asdasdasd",
							"ukey":"1531231230dwdw",
							"sn":"123sdasdwdq",
							"statu|1":[true,false],
							"dflg|1":[true,false],
						},
						
						{
							"mjid":"2",
							"flg|1":[true,false],
							"roomid":"",
							"modelnumber":"F014",
							"uid":"1asdasdasd",
							"ukey":"1531231230dwdw",
							"sn":"123sdasdwdq",
							"statu|1":[true,false],
							"dflg|1":[true,false],
						}
					],
					
					"roomhourprice":[
						{
							"hid":"1",
							"price":"@integer(100, 900)",
							"st":"@date()",
							"et":"@date()",
						},
						{
							"hid":"2",
							"price":"@integer(100, 900)",
							"st":"@date()",
							"et":"@date()",
						},
						{
							"hid":"3",
							"price":"@integer(100, 900)",
							"st":"@date()",
							"et":"@date()",
						},
						
					],
					
				
						
					
					"yyjl|6":[
						{
							"rmorderid":1,
							"jlname": "@cname()",
							"ct":"@date()",
						},
						// {
						// 	"rmorderid":2,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
						// {
						// 	"rmorderid":3,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
						// {
						// 	"rmorderid":4,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
						// {
						// 	"rmorderid":1,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
						// {
						// 	"rmorderid":2,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
						// {
						// 	"rmorderid":3,
						// 	"jlname": "@cname()",
						// 	"ct":"@date()",
						// },
					]
					
					
				}
			})
		}
	},

	{
		key: "/room/info",
		method: "post",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/room/info",
		method: "put",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/room/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;